package com.lzc.core.controller;

import com.lzc.common.base.BaseController;
import com.lzc.common.utils.MyExceptionUtil;
import com.lzc.common.utils.Result;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import com.lzc.core.service.UserService;
import com.lzc.core.entity.UserEntity;
import org.springframework.web.bind.annotation.RestController;

/**
 * CreateTime: 2020-12-06
 * ClassName: UserController
 * Package: com.lzc.core.controller
 * Describe:
 *  前端控制器
 * @author lzc
 */
@RestController
@RequestMapping("user")
public class UserController extends BaseController<UserService,UserEntity> {
    private static final Logger log = LoggerFactory.getLogger(UserController.class);
    @Autowired
    private UserService userService;


    @RequestMapping("/test")
    public Result test(){
        System.out.println(213123);
            int i=10/0;

        return Result.errorJson("123123");
    }
}
